package kr.co.sdworld.api.apns.repository.login;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import kr.co.sdworld.api.apns.model.ApnsLogin;
import kr.co.sdworld.api.apns.model.mapper.ApnsLoginMapper;

@Repository
public class ApnsLoginDaoImpl extends SqlSessionDaoSupport implements ApnsLoginDao 
{
	@Override
	public ApnsLogin getLoginInfo( String id) 
	{
		ApnsLoginMapper mapper = getSqlSession().getMapper(ApnsLoginMapper.class);
		ApnsLogin login = mapper.selectByPrimaryKey( id);
		return login;
	}
	
	public void create( ApnsLogin login)
	{
		ApnsLoginMapper mapper = getSqlSession().getMapper(ApnsLoginMapper.class);
		mapper.insertSelective(login);
	}
}
